<?php

$con=mysqli_connect("localhost","root","admin");
// Check connection
if (mysqli_connect_errno())
  {
  echo "Failed to connect to MySQL: " . mysqli_connect_error();
  }

// Create table
$sql= "CREATE TABLE HOPEWw.Parent(
  parent_ID INT NOT NULL AUTO_INCREMENT,
  session_ID INT NOT NULL,
  session_date DATE NOT NULL,
  parent_Name VARCHAR(40) NOT NULL,
  parent_Surname VARCHAR(40) NOT NULL,
  parent_Address VARCHAR(100) NOT NULL,
  parent_Age INT NOT NULL,
  parent_ContactNum VARCHAR(14) NOT NULL,
  parent_Gender VARCHAR (1) NOT NULL,
  parent_numOfKids INT NOT NULL,
  parent_numOfKidsGirls INT,
  parent_numOfKidsBoys INT,
  
  
  PRIMARY KEY (parent_ID )
   )";
// Execute query
if (mysqli_query($con,$sql))
  {
  echo "Table Parent created successfully";
  }
else
  {
  echo "Error creating table: " . mysqli_error($con);
  }
?>
